#!/usr/bin/env bash
set -e

cur_path=$(pwd)

echo "start to prepare dependency check env"
chmod +x /root/repo/ci-repos/.common_scripts/common.sh
source /root/repo/ci-repos/.common_scripts/common.sh
set_gitee_hosts
prepare_git $1 $2
prepare_conan2 $3 $4
prepare_bingo

echo "start to bingo analysis"
cd ${cur_path}
bingo analysis --rebuild